package com.lhf.novel.sysuser.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * (SysPer)实体类
 *
 * @author 刘会发
 * @since 2020-03-09 11:21:33
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class SysPer implements Serializable {
    private static final long serialVersionUID = -76140977168601352L;
    /**
     * 主键
     */
    private Integer id;
    /**
     * 权限名字
     */
    private String perName;
    /**
     * 权限
     */
    private String per;
    /**
     * 权限图标
     */
    private String perIco;
    /**
     * 组件名字
     */
    private String compoment;
    /**
     * 请求路径
     */
    private String path;
    /**
     * 0 菜单 1按钮
     */
    private Integer type;
    /**
     * 父类id
     */
    private Integer parentId;
    /**
     * 0未删除 1已删除
     */
    private Integer isDel;

    public SysPer(String perName, String per, String perIco, String compoment, String path, Integer type, Integer parentId) {
        this.perName = perName;
        this.per = per;
        this.perIco = perIco;
        this.compoment = compoment;
        this.path = path;
        this.type = type;
        this.parentId = parentId;
    }

    public SysPer(Integer id, Integer isDel) {
        this.id = id;
        this.isDel = isDel;
    }

    public SysPer(String perName, String per, Integer parentId) {
        this.perName = perName;
        this.per = per;
        this.parentId = parentId;
    }
}